package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the meal_recipe database table.
 * 
 */
@Entity
@Table(name="meal_recipe")
public class MealRecipe implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String comment;

	private BigDecimal qty;

	private int version;

	//bi-directional many-to-one association to FoodMaterial
	@ManyToOne
	@JoinColumn(name="meterial_id")
	private FoodMaterial foodMaterial;
	
	//bi-directional many-to-one association to Meal
	@ManyToOne
	@JoinColumn(name="meal_id")
	private Meal meal;

	//bi-directional many-to-one association to Unit
	@ManyToOne
	private Unit unit;

	public MealRecipe() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public BigDecimal getQty() {
		return this.qty;
	}

	public void setQty(BigDecimal qty) {
		this.qty = qty;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public FoodMaterial getFoodMaterial() {
		return this.foodMaterial;
	}

	public void setFoodMaterial(FoodMaterial foodMaterial) {
		this.foodMaterial = foodMaterial;
	}

	public Meal getMeal() {
		return this.meal;
	}

	public void setMeal(Meal meal) {
		this.meal = meal;
	}

	public Unit getUnit() {
		return this.unit;
	}

	public void setUnit(Unit unit) {
		this.unit = unit;
	}

}